package com.hxzy.service.impl;

import com.hxzy.entity.UmsMember;
import com.hxzy.mapper.UmsMemberMapper;
import com.hxzy.service.UmsMemberService;
import com.hxzy.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

public class UmsMemberServiceImpl implements UmsMemberService {
    @Override
    public UmsMember selectByPrimaryKey(Long id) {
        UmsMember umsMember=null;
        try (SqlSession session= MybatisUtil.getSqlSessionFactory().openSession()){
            UmsMemberMapper mapper=session.getMapper(UmsMemberMapper.class);
            umsMember= mapper.selectByPrimaryKey(id);
        }
        return umsMember;
    }
}
